package com.kucun.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import com.kucun.bean.Goods;
import com.kucun.bean.Page;
import com.kucun.bean.Billdetail;

public interface Billdetailservice {
	boolean save(Billdetail billdetail);
	boolean update(Billdetail billdetail);
	boolean delete(String id);
	/*******实际删除数据********/
	int deleteByPrimaryKey(Integer id);
	Billdetail findById(int id);
	List<Billdetail> findAll(Page page);
	List<Billdetail> query(Billdetail billdetail,int i,int rows);
	Page getCount(String cs,String type);
	Page queryCount(Billdetail billdetail);
	Object Savebilldate(HttpServletRequest request) throws  Exception;
	List<Billdetail> querybilldatebyParentid(Billdetail map);
	Object updatebilldate(HttpServletRequest request) throws  Exception;
	/***********删除时不做实际删除**********/
	Object updatebilldateToDel(String ids) throws  Exception;
	/*入库单提交*/
	boolean updatebilldateToSubmitOfInCome(String ids) throws  Exception;
	/*出库单提交*/
	boolean updatebilldateToSubmit(String ids) throws  Exception;
	/******出库单提交时需要验证库存是否充足********/
	List<Billdetail> VerifyInventory(String ids);
	
	//用于查库存
	List<Billdetail> GetGoodsExistOut(Page page);
	public Page GetGoodsExistOutCount(Page page);
	
	public List<Billdetail> QueryBillDateByParentIDS(String ids);
}
